<template>
	<view class="con">
		<template v-if="status == 1">
			<image class="img" src="/static/81.png" mode=""></image>
			<view class="title">您的资料已提交成功审核中，请耐心等待</view>
			<view class="btn" @click="to_index">返回首页</view>
		</template>

		<template v-if="status == 3">
			<image class="img" src="/static/82.png" mode=""></image>
			<view class="title">审核未通过</view>
			<view class="text">{{ liyou }}</view>
			<view class="btn" @click="to_occupancy">重新提交</view>
		</template>
	</view>
</template>

<script setup>
	const http = inject('$http')
	let status = ref(1)
	let liyou = ref('')

	onLoad((option) => {
		console.log('接收传参:', option)
		status.value = option.status
		liyou.value = option.liyou
	})

	const to_index = async () => {
		uni.switchTab({
			url: '/pages/index/index'
		})
	}
	const to_occupancy = async () => {
		uni.redirectTo({
			url: '/pages_B/occupancy/occupancy'
		})
	}
</script>

<style lang="less" scoped>
	.con {
		box-sizing: border-box;
		width: 750rpx;
		height: 100vh;
		background: #ffffff;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		flex-direction: column;
		padding-top: 300rpx;
	}
	.img {
		width: 280rpx;
		height: 150rpx;
		margin-bottom: 70rpx;
	}
	.title {
		text-align: center;
		min-width: 286rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #000000;
		margin-bottom: 50rpx;
	}
	.text {
		box-sizing: border-box;
		padding: 30rpx;
		width: 520rpx;
		background: #f8f8f8;
		border-radius: 24rpx;
		font-size: 24rpx;
		font-weight: 500;
		color: #000000;
		line-height: 36rpx;
		margin-bottom: 70rpx;
	}
	.btn {
		width: 240rpx;
		height: 72rpx;
		background: #ffffff;
		border: 1rpx solid #2468fb;
		border-radius: 37rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 28rpx;
		font-weight: 500;
		color: #2468fb;
	}

	//
</style>
